/**
 * 
 */
package com.skood.common.domain;

import org.apache.commons.lang3.StringUtils;

/**
 * @author keege
 * @date 2014-1-4
 */
public class Sorter {

	private String property;
	private String direction;
	public String getProperty() {
		//如果排序的属性字段中包含"entityBean.",则去除
		if(StringUtils.isNotEmpty(this.property)){
			return StringUtils.replace(this.property, "entityBean.", "");
		}
		return property;
	}
	public void setProperty(String property) {
		this.property = property;
	}
	public String getDirection() {
		return direction;
	}
	public void setDirection(String direction) {
		this.direction = direction;
	}
	
}
